package com.xqboss.apps.dto.synthesis;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value = "活动方案配置调整库存", description = "接收参数")
public class SynthesisPlanConfigUpdateDto implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "活动id")
    private Long id;

    @ApiModelProperty(value = "合成限制最大数")
    @NotNull(message = "合成限制最大数不可为空")
    @Min(value = 1, message = "合成限制最大数不合法")
    @Max(value = 9999, message = "合成限制最大数不合法")
    private Integer userMaxNum;

//    @ApiModelProperty(value = "单次合成上限")
//    @NotNull(message = "单次合成上限格式不可为空")
//    @Min(value = 1, message = "单次合成上限不合法")
//    @Max(value = 99999, message = "单次合成上限不合法")
//    private Integer onceMaxNum;
}
